#pragma once

#include <QtCore/QVariant>

class FileStatus
{
private:

public:
	QString fileName = "";
	bool isNew = true;
	bool hasChanged = false;

	FileStatus() {
	}

	void newFile() {
		this->fileName = "";
		this->isNew = true;
		this->hasChanged = false;
	}

	void open(const QString& fileName) {
		this->fileName = fileName;
		this->isNew = false;
		this->hasChanged = false;
	}

	void save() {
		this->isNew = false;
		this->hasChanged = false;
	}

	void saveAs(const QString& fileName) {
		this->fileName = fileName;
		this->isNew = false;
		this->hasChanged = false;
	}

	void reset() {
		this->hasChanged = true;
	}
};

